<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新增挂号</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-4">
    <h2>新增挂号</h2>
    <form th:action="@{/reg/add}" method="post">
        <div class="form-group">
            <label for="Name">姓名</label>
            <input type="text" class="form-control" id="Name" name="Name" required>
        </div>
        <div class="form-group">
            <label for="Tel">手机号</label>
            <input type="text" class="form-control" id="Tel" name="Tel" maxlength="13" required>
        </div>
        <div class="form-group">
            <label for="DepartID">科室</label>
            <select class="form-control" id="DepartID" name="DepartID" required>
                <option value="" disabled selected>请选择科室</option>
                <option th:each="d : ${departItems}"
                        th:value="${d.departID}"
                        th:text="${d.departName}"></option>
            </select>
        </div>
        <button type="submit" class="btn btn-primary">保存</button>
        <a href="/reg/list" class="btn btn-secondary">取消</a>
    </form>
    <div class="mt-3">
        <a href="/departItem/list">去管理科室</a>
    </div>
    
</div>
</body>
</html>


